package com.googlecode.horncomb.organ.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Table;

import com.googlecode.horncomb.organ.Person;

/**
 * @author Daniel
 */
@Entity
@Table(name = "HCB_ORGN_PERSON")
@MappedSuperclass
public class DefaultPerson implements Person {
	private static final long serialVersionUID = 8158641977652902356L;
	private String id;
	private String name;
	private String nature;
	private String state;
	private Date created;
	private Date lastUpdated;
	private String category;

	/**
	 * @return the id
	 */
	@Id
	@Column(name = "ID_")
	public String getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	@Column(name = "NAME_")
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the nature
	 */
	@Column(name = "NATURE_")
	public String getNature() {
		return nature;
	}

	/**
	 * @param nature
	 *            the nature to set
	 */
	public void setNature(String nature) {
		this.nature = nature;
	}

	/**
	 * @return the state
	 */
	@Column(name = "STATE_")
	public String getState() {
		return state;
	}

	/**
	 * @param state
	 *            the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * @return the created
	 */
	@Column(name = "CREATED_")
	public Date getCreated() {
		return created;
	}

	/**
	 * @param created
	 *            the created to set
	 */
	public void setCreated(Date created) {
		this.created = created;
	}

	/**
	 * @return the lastUpdated
	 */
	@Column(name = "LST_UPD_")
	public Date getLastUpdated() {
		return lastUpdated;
	}

	/**
	 * @param lastUpdated
	 *            the lastUpdated to set
	 */
	public void setLastUpdated(Date lastUpdated) {
		this.lastUpdated = lastUpdated;
	}

	/**
	 * @return the category
	 */
	@Column(name = "CATEGORY_")
	public String getCategory() {
		return category;
	}

	/**
	 * @param category
	 *            the category to set
	 */
	public void setCategory(String category) {
		this.category = category;
	}
}
